#ifndef FIRMWAREPROGRAM_HPP
#define FIRMWAREPROGRAM_HPP

#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "flash.hpp"
#include "sdk_config.h"
#include "firmwaredownload.hpp"

using namespace device;
///> 下载代码之后的编程
namespace ota
{
	class firmwareprogram
	{
		private:
			flash *mFirmWareProgramFlash;
		public:
			bool CheckSumEnable;
			
			firmwareprogram(flash *tFlash);
			bool Program(void);
	};
}

#endif
